<template>
	<view class="DocFriDetail">
		<!--  -->
		<view class="outer-detail">
			<!-- 左边头像 -->
			<view class="left-img">
				<slot name="img"></slot>
			</view>
			<!-- 中间介绍 -->
			<view class="middle-instroduce">
				<slot name="Name"></slot>
				<slot name="subject"></slot>
				<slot name="feacher"></slot>
			</view>
			<!-- 按钮 -->
			<view class="btn-cont">
				<slot name="btn1"></slot>
				<slot name="btn2"></slot>
				<!-- <view @click="GoToChat">咨询</view> -->
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		name: "DocterOrFrindDetail",
		data() {
			return {

			};
		},

		methods: {
			// GoToChat() {
			// 	uni.navigateTo({
			// 		url: '/pages/Chat/Chat'
			// 	})
			// }
		}
	}
</script>

<style lang="scss" scoped>
	.DocFriDetail {
		width: 100%;
		height: auto;

		.outer-detail {
			width: 100%;
			height: auto;
			display: flex;
			justify-content: space-around;
			margin-top: 30rpx;
			margin-left: 30rpx;
			padding-bottom: 20rpx;
			border-bottom: 1px solid #ccc;

			&:first-child {
				padding-top: 20rpx;
				border-top: 1px solid #ccc;
			}

			.left-img {
				width: 200rpx;
				height: 200rpx;
				background-color: #ccc;
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;

				image {
					width: 140rpx;
					height: 140rpx;
					border-radius: 50%;
				}
			}

			// 
			.middle-instroduce {
				width: 300rpx;
				height: auto;
				display: flex;
				flex-direction: column;
				justify-content: center;
				margin-top: 30rpx;

				text {
					font-size: 25rpx;
					line-height: 40rpx;
					padding-left: 25rpx;

					&:last-child {
						height: auto;
						color: #6d6d6d;
					}
				}
			}

			// 
			.btn-cont {
				width: 150rpx;
				height: 200rpx;
				display: flex;

				flex-direction: column;
				justify-content: space-around;


				view {
					width: 150rpx;
					height: 50rpx;
					color: #ffffff;
					font-size: 25rpx;
					border-radius: 30rpx;
					background-color: #4095e5;
					text-align: center;
					line-height: 50rpx;
				}
			}
		}
	}
</style>
